package com.byref.liteflowdemo.cmp.fordemo;

import com.yomahub.liteflow.core.NodeForComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author BYREF
 */
@Component("forLoopNumber")
@Slf4j
public class ForCmp extends NodeForComponent {
    @Override
    public int processFor() throws Exception {
        log.info("开始执行forLoopNumber");
        return Integer.parseInt(this.getRequestData());
    }
}
